﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;

namespace Dt261.Model
{
    [Table("user")]
    class User
    {
        
        private int id;

        private DateTime createTime;
        private string deviceID;
        private bool isGirl;
        private bool isLogin;
        private DateTime lastLoginTime;
        private string name;
        private string password;
        private string phone;
        // @property(nullable, nonatomic, retain) NSData* selfphoto;
        private string uid;
        private bool isUpload;


        [PrimaryKey, AutoIncrement]
        public int Id { get => id; set => id = value; }

        public DateTime CreateTime { get => createTime; set => createTime = value; }
        public string DeviceID { get => deviceID; set => deviceID = value; }
        public bool IsGirl { get => isGirl; set => isGirl = value; }
        public bool IsLogin { get => isLogin; set => isLogin = value; }
        public DateTime LastLoginTime { get => lastLoginTime; set => lastLoginTime = value; }
        public string Name { get => name; set => name = value; }
        public string Password { get => password; set => password = value; }
        public string Phone { get => phone; set => phone = value; }
        public string Uid { get => uid; set => uid = value; }
        public bool IsUpload { get => isUpload; set => isUpload = value; }
        
    }
}
